package com.company.show.factorys.abstracts;


/**
 * @author yingfing
 * @create 2020--10--07 15:56
 * @describe
 */
public class Test {
    public static void main(String[] args) {
        AbstractFactory logic = FactoryProvider.produce("logic");
        KeyBoard keyBoard = logic.getKeyBoard();
        keyBoard.enterDown();
        Mouse mouse = logic.getMouse();
        mouse.click();


        AbstractFactory micro = FactoryProvider.produce("micro");
        KeyBoard keyBoard1 = micro.getKeyBoard();
        keyBoard1.enterDown();
        Mouse mouse1 = micro.getMouse();
        mouse1.click();
    }
}
